<?php

namespace App\Http\Controllers\Api\V1\Queries;

use App\Models\HotProduct;
use Spatie\QueryBuilder\QueryBuilder;
use Spatie\QueryBuilder\AllowedFilter;

class HotProductQuery extends QueryBuilder
{
	public function __construct()
	{
		parent::__construct(HotProduct::query());
		
		$this->allowedIncludes(['product'])
			->allowedFilters([
				AllowedFilter::exact('is_today'),
			]);
	}
}
